package com.ychen.user.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ Author     ：ChenYuliao
 * @ Date       ：Created in 15:48 2018/12/2 0002
 * @ Description：
 */
@RestController
public class FirstController {
    @RequestMapping("/first")
    public Object first() {
        return "first controller";
    }

    @RequestMapping("/doError")
    public Object error() {
        return 1 / 0;
    }
}
